(function(){
	
	Ext.define('NetShopping.goods.GoodsBaseForm',{
		extend:'AppView.base.BaseForm',
		alias:'widget.goodsbaseform',
		defaults:{xtype:'textfield',labelWidth:60,anchor:'100%'},
		url:'/goods/save.do',
		items:[
			{
				fieldLabel:'商品名称',
				allowBlank:false,
				name:'goodsName'
			},
			{
				fieldLabel:'商品编码',
				name:'goodsCode'
			},
			{
				fieldLabel:'商品价格',
				xtype:'numberfield',
				name:'goodsPrice'
			},
			{
				fieldLabel:'商品单位',
				name:'goodsUnit'
			},
			{
				xtype:'textarea',
				fieldLabel:'商品描述',
				name:'goodsInfo'
			}
		]
	})
	
	Ext.define('NetShopping.goods.GoodsBaseWin',{
		extend:'AppView.base.FormWin',
		alias:'widget.goodsbasewin',
		title:'商品发布',
		viewUrl:'/goods/view.do',
		height:300,
		items:[
			{
				xtype:'goodsbaseform'
			}
		]
	})
})()